package com.cheng.service;

import com.cheng.dao.UsersMapper;
import com.cheng.pojo.Users;

public class UsersServiceImpl implements UsersService {

    private UsersMapper usersMapper;
    public void setUsersMapper(UsersMapper usersMapper) {
        this.usersMapper=usersMapper;
    }


    public Users selectUsers(String name, String password) {
        return usersMapper.selectUsers(name,password);
    }

    public int addUsers(Users users) {
        return usersMapper.addUsers(users);
    }

    public int updatePassword(Users users) {
        return usersMapper.updatePassword(users);
    }

    @Override
    public int updateMoney(String name, String money) {
        return usersMapper.updateMoney(name,money);
    }

    @Override
    public int addMoney(String name, String total_price) {
        return usersMapper.addMoney(name,total_price);
    }

    @Override
    public Users select_information(String name) {
        return usersMapper.select_information(name);
    }

    @Override
    public int update_information(String userEmail, String userPassword, String name) {
        return usersMapper.update_information(userEmail,userPassword,name);
    }
}
